package com.mis.entity.data;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import javax.persistence.Transient;

/**   
 * @Title: Entity
 * @Description: 供应商
 * @author zhangdaihao
 * @date 2014-12-05 21:29:30
 * @version V1.0   
 *
 */
@Entity
@Table(name = "supplier", schema = "")
@SuppressWarnings("serial")
public class SupplierEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.String obid;
	/**用户名*/
	private java.lang.String name;
	/**电话*/
	private java.lang.Integer tel;
	/**地址*/
	private java.lang.String address;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="OBID",nullable=false,length=36)
	public java.lang.String getObid(){
		return this.obid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setObid(java.lang.String obid){
		this.obid = obid;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  用户名
	 */
	@Column(name ="NAME",nullable=true,length=32)
	public java.lang.String getName(){
		return this.name;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  用户名
	 */
	public void setName(java.lang.String name){
		this.name = name;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  电话
	 */
	@Column(name ="TEL",nullable=true,precision=10,scale=0)
	public java.lang.Integer getTel(){
		return this.tel;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  电话
	 */
	public void setTel(java.lang.Integer tel){
		this.tel = tel;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  地址
	 */
	@Column(name ="ADDRESS",nullable=true,length=50)
	public java.lang.String getAddress(){
		return this.address;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  地址
	 */
	public void setAddress(java.lang.String address){
		this.address = address;
	}
	
	
}
